﻿using Baula.TextGen.Framework.ComInterop;

namespace Baula.TextGen.Framework
{
    public class UnknownPartNameException : TextGenException
    {
        public UnknownPartNameException(string partName) 
            : base(GetMessage(partName), ErrorCodes.UnknownPartName)
        {
        }

        private static string GetMessage(string partName)
        {
            return string.Format("There is no part template named \"{0}\".", partName);
        }
    }
}